package com.kurancy.web.authentication;

import org.springframework.security.core.AuthenticationException;

import com.kurancy.domain.KurancyUser;

public class RegistrationNotFoundException extends AuthenticationException {
	
	private static final long serialVersionUID = -2842056134688810398L;
	
	private KurancyUser unregisteredKurancyUser;

	public RegistrationNotFoundException(KurancyUser unregistered) {
		super("User not Registered");
		this.unregisteredKurancyUser = unregistered;
	}

	public KurancyUser getUnregisteredKurancyUser() {
		return unregisteredKurancyUser;
	}

	public void setUnregisteredKurancyUser(KurancyUser unregisteredKurancyUser) {
		this.unregisteredKurancyUser = unregisteredKurancyUser;
	}

}
